'superstrict
Framework brl.GLMax2D
import brl.standardio

global xres# = 640
global yres# = 480




glGraphics(xres,yres,0,0,2)


		glDisable(GL_TEXTURE_2D);
		glMatrixMode(GL_PROJECTION);
		glLoadIdentity();
		glOrtho(0,xres,yres,0,-1,1);
		glMatrixMode(GL_MODELVIEW);
		glLoadIdentity();
		glViewport(0,0,xres,yres);


while not keyhit(KEY_ESCAPE)
	glClear(GL_COLOR_BUFFER_BIT)
	
	
	

	glColor3f(1,1,1);
	glBegin(GL_LINES);
		glVertex2f(0,0);
		glVertex2f(320,240);
	glEnd();

	flip
wend


